<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>add model</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">

	<script type="text/javascript" src="/Machine/js/jquery-1.7.2.js">
	</script>
	<script type="text/javascript">
	
	function lookModel(obj)
	{
		var path = $("input[name='modelPath'][checked]").val();
		obj.href="/Machine/user/lookModel.action?path="+path;
	}
	
	
	function submitModel()
	{
		var path = $("input[name='modelPath'][checked]").val();
		window.location="/Machine/user/addModel.action?path="+path+"&id=" + "${id}";
	}
	
	
	</script>

	</head>

	<body>
		<div>
			选择3D模型文件：
		</div>
		<div>

			<c:forEach items="${model_list}" var="item">
				<input type="radio" name="modelPath" value="${item.path}" />
				${item.name}
				<br />
			</c:forEach>

		</div>
		
		<div>
		
		<a href="#" onclick="lookModel(this);" target="_blank">点击预览</a><br />
		<a href="#" onclick="return submitModel();">点击添加模型文件</a>
		
		
		</div>





	</body>
</html>
